package com.zhangfuyin.student.service.impl;

import com.zhangfuyin.student.dao.StudentDao;
import com.zhangfuyin.student.entity.Student;
import com.zhangfuyin.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;


    @Override
    public void insertStu(Student student) {
        studentDao.insertStu(student);

//        if(true){
//            throw new RuntimeException("运行时异常");
//        }


    }


}
